<?php
session_start();
if(empty($_SESSION['auth_username']) && empty($_SESSION['auth_password']))
{
header('Location: ../index.php');
} else if ($_SESSION['auth_level'] == 1)
{
header('Location: ../index.php');
}
include_once '../class_projekt.php';
$projekt = new Projekt();
?>
<html>
<head>
    <script type="text/javascript" src="../js/jquery-1.7.1.js"></script>
    <script type="text/javascript" src="../js/sug.js"></script>
	 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link rel="stylesheet" type="text/css" href="../style.css" />
</head>
<body>
<div id="admin_function">
<a href="admin.php">Zurück zum Admincenter </a> 

<form action="suggestion.php" method="POST">
<h2>Vorschl&auml;ge</h2>
<select name="proj">
 <?php $projekt->pros(); ?>
</select>
<select name="lang">
<?php $projekt->lang(); ?>
 </select>
 <input type="submit" value="Submit" name="submit">
 
 
 <?php
 if ($_POST['submit'])
 {
 $lang = $_POST['lang'];
 $proj = $_POST['proj'];
 ?>
 <table  border="1">
 <?php $projekt->getSug($lang,$proj); ?>
 </table>
 <?php
 }
 ?>
 </div>
 </body>
 </html>


